import request from '@/utils/request'

/**
 * 新增
 * @param {questionName,questionCategory,questionType,difficultDegree,knowledgePoint,pointValue,answer,choiceList} data 
 * @returns 
 */
export function examinaTion(data) {
    return request({
        url: '/drill/question',
        method: 'post',
        data: data
    })
}

/**
 * 列表
 * @param {*} query 
 * @returns 
 */
export function TitleList(query) {
    return request({
        url: '/drill/question/list',
        method: 'get',
        params: query
    })
}

/**
 * 删除
 * @param {questionId} questionId 
 * @returns 
 */
export function TopicDelete(questionId) {
    return request({
        url: '/drill/question/' + questionId,
        method: 'delete',
    })
}

/**
 * 修改
 * @param {questionId} data 
 * @returns 
 */
export function ModifiCation(data) {
    return request({
        url: '/drill/question',
        method: 'put',
        data: data
    })
}
